class CreateAppUsers < ActiveRecord::Migration
  def self.up
    create_table :app_users do |t|
      t.column :login, :string, :limit => 32, :null => false
      t.column :senha, :string, :limit => 32, :null => false
      t.column :email, :string, :limit => 100, :null => false
      t.column :user_type_id, :integer, :null => false
      t.column :foto, :binary
      t.timestamps
    end
  end

  def self.down
    drop_table :app_users
  end
end
